
function getInformation(parm, callback, fail) {
  console.log(parm)
  getApp().func.Post(false, getApp().api.getInformation, parm,
    function (data) {
      typeof callback == "function" && callback(data)
      console.log(data)
    },

    function (error) {
      typeof fail == "function" && fail(error)
    }
  )
};
function requestFocus(parm, callback) {
  console.log(parm)
  getApp().func.Post(false, getApp().api.userfans_get_fans, parm,
    function (data) {
      typeof callback == "function" && callback(data)
      console.log(data)
    },

    function (error) {
      wx.showToast({
        title: error.data.message,
        icon: 'none',
        duration: 2000,
      })
    }
  )
};
function requestAddFans(parma, callback) {
  console.log(parma)
  getApp().func.Post(false, getApp().api.put_fans, parma,
    
    function (data) {
      typeof callback == "function" && callback(data)
    },
    function (error) {
      console.log("^^^^^^^^^^")
      wx.showToast({
        title: error.data.message,
        icon: 'none',
        duration: 2000,
      })
    }
  )
}
module.exports = {
  getInformation: getInformation,
  requestFocus: requestFocus,
  requestAddFans: requestAddFans
};